package com.itmayiedu.controller;

import com.itmayiedu.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * *******************************************
 *
 * @description:
 * @author: by jgl
 * @date: 2018/2/4 0004 下午 4:25
 * @version:1.0 *******************************************
 */
@RestController
public class FeignController {

    @Autowired
    private FeignService feignService;

    @RequestMapping(value = "/hifeign")
    public String hiname(String name){
        return feignService.hi(name+"from feign");
    }
}
